package com.yochi.pictureseditor.effects.converters;

import java.util.Locale;

public class PixelsConverter implements ParameterConverter {
	
	private static final long serialVersionUID = 8355025712953315539L;

	public double convert(double parameter) {
		return parameter/3.0f;
	}
	
	public double convertInverse(double value) {
		return value;
	}

	public String toDisplay(double parameter) {
		return String.format(Locale.FRANCE, "%.1f", parameter);
	}

}